<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>将指定路由规则组合成一个url</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="class.yaf-route-interface.html">« Yaf_Route_Interface</a></li>
      <li style="float: right;"><a href="yaf-route-interface.route.html">Yaf_Route_Interface::route »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.yaf-route-interface.html">Yaf_Route_Interface</a></li>
    <li>将指定路由规则组合成一个url</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="yaf-route-interface.assemble" class="refentry">
    <div class="refnamediv">
        <h1 class="refname">Yaf_Route_Interface::assemble</h1>
        <p class="verinfo">(Yaf &gt;=2.3.0)</p><p class="refpurpose"><span class="refname">Yaf_Route_Interface::assemble</span> &mdash; <span class="dc-title">将指定路由规则组合成一个url</span></p>

    </div>
    
    <div class="refsect1 description" id="refsect1-yaf-route-interface.assemble-description">
        <h3 class="title">说明</h3>
        <div class="methodsynopsis dc-description">
            <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><strong>Yaf_Route_Interface::assemble</strong></span>(<span class="methodparam"><span class="type">array</span> <code class="parameter">$info</code></span>, <span class="methodparam"><span class="type">array</span> <code class="parameter">$query</code><span class="initializer"> = ?</span></span>): <span class="type">string</span></div>

        <p class="para rdfs-comment">
            这个方法会将指定的参数加上自定义的参数组合成一个url
        </p>
        <p class="para">
            所有route必须结合其路由规则来实现这个方法
        </p>
    </div>

    
    <div class="refsect1 parameters" id="refsect1-yaf-route-interface.assemble-parameters">
        <h3 class="title">参数</h3>
        <dl>
            
                <dt>
<code class="parameter">info</code></dt>

                <dd>

                    <p class="para">
                        
                    </p>
                </dd>

            
            
            
                <dt>
<code class="parameter">query</code></dt>

                <dd>

                    <p class="para">
                        
                    </p>
                </dd>

            
        </dl>

    </div>

    
    <div class="refsect1 returnvalues" id="refsect1-yaf-route-interface.assemble-returnvalues">
        <h3 class="title">返回值</h3>
        <p class="para">
            
        </p>
    </div>

    
    
</div></div></div></body></html>